package circular_buffer;

public class Main {

	public static void main(String[] args) {
		System.out.println("Let's test our buffer in one Thread");
		CircularBuffer<String> buff = new SimpleCircularBuffer<String>(5);
		
		new Thread(new ProduserRunnable(1,buff)).start();
		new Thread(new ProduserRunnable(2,buff)).start();
		new Thread(new ProduserRunnable(3,buff)).start();
		new Thread(new ConsumerRunnable(1,buff)).start();
		new Thread(new ConsumerRunnable(2,buff)).start();
		new Thread(new ConsumerRunnable(3,buff)).start();
	}

}
